package com.jianbing.shasha.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

import java.util.Date;

public class ShashaTestRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @Excel(name = "用户Id")
    private Long userId;

    @Excel(name = "题目类型")
    private String type;

    @Excel(name = "正确答案")
    private String rightAnswer;

    @Excel(name = "语音答案")
    private String voiceAnswer;

    @Excel(name = "语音时长")
    private String voiceDuration;

    @Excel(name = "选择答案")
    private String selectAnswer;

    @Excel(name = "正误判断")
    private String correct;

    @Excel(name = "选择答案时长")
    private String selectAnswerDuration;

    @JsonFormat(pattern = "yyyy-MM-dd hh-mm-ss")
    @Excel(name = "答题日期", width = 30, dateFormat = "yyyy-MM-dd hh-mm-ss")
    private Date doTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRightAnswer() {
        return rightAnswer;
    }

    public void setRightAnswer(String rightAnswer) {
        this.rightAnswer = rightAnswer;
    }

    public String getVoiceAnswer() {
        return voiceAnswer;
    }

    public void setVoiceAnswer(String voiceAnswer) {
        this.voiceAnswer = voiceAnswer;
    }

    public String getVoiceDuration() {
        return voiceDuration;
    }

    public void setVoiceDuration(String voiceDuration) {
        this.voiceDuration = voiceDuration;
    }

    public String getSelectAnswer() {
        return selectAnswer;
    }

    public void setSelectAnswer(String selectAnswer) {
        this.selectAnswer = selectAnswer;
    }

    public String getSelectAnswerDuration() {
        return selectAnswerDuration;
    }

    public void setSelectAnswerDuration(String selectAnswerDuration) {
        this.selectAnswerDuration = selectAnswerDuration;
    }

    public Date getDoTime() {
        return doTime;
    }

    public void setDoTime(Date doTime) {
        this.doTime = doTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCorrect() {
        return correct;
    }

    public void setCorrect(String correct) {
        this.correct = correct;
    }

    @Override
    public String toString() {
        return "ShashaTestRecord{" +
                "userId=" + userId +
                ", type='" + type + '\'' +
                ", rightAnswer='" + rightAnswer + '\'' +
                ", voiceAnswer='" + voiceAnswer + '\'' +
                ", voiceDuration='" + voiceDuration + '\'' +
                ", selectAnswer='" + selectAnswer + '\'' +
                ", correct='" + correct + '\'' +
                ", selectAnswerDuration='" + selectAnswerDuration + '\'' +
                ", doTime=" + doTime +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
